include ./Makefile.param

SRCS := $(wildcard specs/*.c)
SRCS += $(wildcard utils/*.c)
SRCS += $(wildcard *.c)

OBJS = $(SRCS:%.c=%.o)

TARGET = ipcsearch

all:$(TARGET)
.PHONY:all clean

$(TARGET):$(OBJS)
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(INCS)

$(OBJS): %.o:%.c
	$(CC) $(CFLAGS) -c -o $@ $< $(INCS)

clean:
	@rm $(OBJS)
	@rm $(TARGET)

